import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'




export function getShopCashiers(params){
    return request({
        url: sysPath+'/hx-mart/api/v1/res/shop/cashier/getShopCashiers',
        method: 'get',
        params
    })
} 

export function findShopCashierById(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/res/shop/cashier/findShopCashierById',
        method: 'get',
        params
    })
} 

export function saveOrUpdateShopCashier(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/res/shop/cashier/saveOrUpdateShopCashier',
        method: 'post',
        data:params
    })
} 

export function enableShopCashier(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/res/shop/cashier/enableShopCashier',
        method: 'get',
        params
    })
} 

export function CheckUserName(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/res/shop/cashier/checkUserName',
        method: 'get',
        params
    })
}

export function deleteShopCashier(params){
   
    return request({
        url: sysPath+'/hx-mart/api/v1/res/shop/cashier/deleteShopCashier',
        method: 'get',
        params
    })
}